package com.woniu.sharepark.leasesystem.common.service.impl;

import com.woniu.sharepark.common.JsonResult;
import com.woniu.sharepark.common.dao.UserInfoDAO;
import com.woniu.sharepark.common.pojo.UserInfo;
import com.woniu.sharepark.leasesystem.common.dao.IndentFormDAO;
import com.woniu.sharepark.leasesystem.common.service.IndentFormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author DELL
 * @date 2019/6/20 10:14
 * version v1.0
 */
@Service
public class IndentFormServiceImpl implements IndentFormService {

    @Resource
    private IndentFormDAO indentFormDAO;

    @Autowired
    private UserInfoDAO userInfoDAO;

    @Override
    public JsonResult findIndentForm(Integer uId) {
       UserInfo userInfo = userInfoDAO.findIndentForm(uId);

        return JsonResult.ok("success",userInfo);
    }
}
